package main

import (
    "crypto/sha256"
    "fmt"
)

func main() {
    c1 := sha256.Sum256([]byte("x"))
    c2 := sha256.Sum256([]byte("X"))
    fmt.Printf("%x\n%x\n%t\n%T\n", c1, c2, c1 == c2, c1)
    // Output:
    // 2d711642b726b04401627ca9fbac32f5c8530fb1903cc4db02258717921a4881
    // 4b68ab3847feda7d6c62c1fbcbeebfa35eab7351ed5e78f4ddadea5df64b8015
    // false
    // [32]uint8

    months := [...]string{1: "January", 2: "111", 3: "222", 4: "333", 5: "444", 6: "555", 7: "666", 8: "777", 9: "888", 10: "999", 11: "101010", 12: "December"}

    Q2 := months[4:7]
    summer := months[6:9]
    fmt.Println(Q2)     // ["April" "May" "June"]
    fmt.Println(summer) // ["June" "July" "August"]

    // fmt.Println(summer[:20]) // panic: out of range

    endlessSummer := summer[:5] // extend a slice (within capacity)
    fmt.Println(endlessSummer)  // "[June July August September October]"

}
